package com.song.tools.songtest.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;


/**
 * <p>
 * 角色表
 * </p>
 *
 * @author song tools
 * @since 2024-07-12
 */
@Getter
@Setter
@TableName("sys_role")
@Schema(name = "SysRole", description = "角色表")
public class SysRole implements Serializable {
    @Serial
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Schema(description = "自增主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "角色编码")
    private String code;

    @Schema(description = "角色名")
    private String roleName;

    @Schema(description = "备注")
    private String remark;

    @Schema(description = "创建人id")
    private Long createUserId;

    @Schema(description = "创建人用户名")
    private String createUsername;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "更新人id")
    private Long updateUserId;

    @Schema(description = "更新人用户名")
    private String updateUsername;

    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

    @Schema(description = "逻辑删除，0表示未删除，1表示已删除")
    private Integer deleted;
}
